home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / to_dos.z / to_dos
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTOOOO____DDDDOOOOSSSS((((1111))))                                                            TTTTOOOO____DDDDOOOOSSSS((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      to_dos, to_unix - convert text files between MSDOS and UNIX
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ttttoooo____ddddoooossss [ <UNIX file> [<MSDOS file>]]
  13.      ttttoooo____uuuunnnniiiixxxx [ <MSDOS file> [<UNIX file>]]
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      ttttoooo____ddddoooossss converts a UNIX text file into a MSDOS text file by appending a
  17.      control-M character at the end of each line and a control-Z character at
  18.      the end of the file.  ttttoooo____uuuunnnniiiixxxx converts a MSDOS text file into a UNIX text
  19.      file by stripping trailing control-M and control-Z characters.
  20.  
  21.      Both commands can take zero, one, or two arguments.  If no arguments are
  22.      given, the commands act as a filter, taking input from stdin and writing
  23.      the modified file to stdout.  When a single argument is specified, the
  24.      argument is treated as the name of the input file, and the resulting
  25.      output is written to stdout.  Finally, if two arguments are provided on
  26.      the command line, the first argument is treated as the input file and the
  27.      second argument is treated as the output file.
  28.  
  29. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  30.      cat /etc/hosts | to_dos > /dev/ttyd2
  31.  
  32.      to_unix /etc/hosts > /dev/ttyd2
  33.  
  34.      to_dos /etc/hosts /dev/ttyd2
  35.  
  36. BBBBUUUUGGGGSSSS
  37.      Both ttttoooo____ddddoooossss and ttttoooo____uuuunnnniiiixxxx are unable to deal with extremely long lines (>
  38.      4K).
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.